<script setup>
import { ref, watch,isRef } from "vue";
const div = ref(null);
watch(div, (val) => {
    if (!val) return;
    val.style.color = "red";
    console.log('1111111',isRef(div));
});
</script>
<template>
    <div ref="div">content</div>
</template>
